package com.zhaojd.framework.service.impl;

import com.zhaojd.framework.mapper.DictMapper;
import com.zhaojd.framework.model.SysDict;
import com.zhaojd.framework.service.IDictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * create by zhoajd on 2018-03-16
 */
@Service
public class DictServiceImpl implements IDictService {

    private final DictMapper dictMapper;

    @Autowired
    public DictServiceImpl(DictMapper dictMapper) {
        this.dictMapper = dictMapper;
    }

    @Override
    public SysDict findById(long id) {
        return dictMapper.selectByPrimaryKey(id);
    }
}
